package com.JUC.cha05.setc01;

public class InterruptDemo4 {

    public static void main(String[] args) {

        System.out.println(Thread.currentThread().getName() + "\t" + Thread.interrupted());
        System.out.println(Thread.currentThread().getName() + "\t" + Thread.interrupted());
        System.out.println("1----------");
        Thread.currentThread().interrupt();
        System.out.println("1----------");
        System.out.println(Thread.currentThread().getName() + "\t" + Thread.interrupted());
        System.out.println(Thread.currentThread().getName() + "\t" + Thread.interrupted());

        Thread.currentThread().interrupt();

        Thread.interrupted();

        Thread.currentThread().isInterrupted();
    }
}
